package com.dengbw.systemtransfer.mapper;

import com.dengbw.systemtransfer.interfaces.MyBaseMapper;
import com.dengbw.systemtransfer.model.db.SysConfig;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author dengbw
 * @date 2021/11/2 4:47 下午
 */
@Mapper
public interface SysConfigMapper extends MyBaseMapper<SysConfig> {
    @Insert("INSERT INTO `sys_config`(`label_id`, `config_name`, `config_key`, `config_value`,  `value_type`, `tenant_id`,`sub_tenant_id`) VALUES (#{labelId}, #{configName}, #{configKey}, #{configValue}, #{valueType}, #{tenantId}, #{subTenantId})")
    void save(Long labelId, String configName, String configKey, String configValue, Integer valueType, String tenantId, Long subTenantId);
}
